package com.itheima.manage.controller;

import com.itheima.manage.config.NoAuthorization;
import com.itheima.manage.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 创建视频信息表 专用
 * @author wds
 * @date 2021/12/20
 * @apiNote
 */

@RestController
@RequestMapping("/video")
public class VideoController {
    @Autowired
    VideoService videoService;

    /**
     * 将video的相关信息建表
     * @return
     */
    @NoAuthorization
    @PutMapping("create")
    public ResponseEntity save(){

        videoService.saveVideoInfo();


        return ResponseEntity.ok(null);
    }
}
